/*
 * Copyright (c) 2017. 深圳一七科技. All rights reserved.
 */

package com.yiqi.liebang.feature.people.contract;

import com.suozhang.framework.entity.bo.UserInfoBo;
import com.suozhang.framework.framework.BasePresenter;
import com.suozhang.framework.framework.BaseView;
import com.yiqi.liebang.entity.bo.FriendBo;
import com.yiqi.liebang.entity.bo.PeopleBo;
import com.yiqi.liebang.entity.bo.RegisterBo;
import com.yiqi.liebang.entity.bo.SearchBo;

import io.reactivex.Observable;

/**
 * LIJUWEN
 *
 * @email yiyayiyayaoljw@gmail.com
 * @date 2018/7/11 9:06
 */
public interface PeopleContract {

    interface Model {
        Observable<FriendBo> searchPeople(SearchBo registerBo);
        Observable<String> commitAddFriend(PeopleBo registerBo);
    }

    interface View extends BaseView {
        void showResetSuccess(FriendBo s);

        void showFriendsEmpty();
        void showApplySuccess();
        void showPeopleEmpty();
        void showError(String error);

    }


    interface Presenter extends BasePresenter {
        void searchPeople(String info);

        void commitAddFriend(String friendId );
    }
}
